<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
         <!-- 引入Vue.js库，这里以Vue 2的CDN为例 -->
         <script src="https://cdn.jsdelivr.net/npm/vue@2.6.14/dist/vue.min.js"></script>
</head>
<body>
    <div id="app">

<div v-for="addr in addresses">{{ addr }}</div>
<div v-for="(addr,index) in addresses">{{ index+1 }}: {{ addr }}</div>

</div>

    </div>
</body>
<script>
    new Vue({
        el: '#app',
        data: {
            addresses: ['北京', '上海', '广州', '深圳'],},

            method: {

            }
        })
</script>

</html>